package com.site.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.site.domain.RecruitInfo;
import com.site.persistence.RecruitInfoMapper;
import com.site.service.RecruitInfoService;

/**
 * Purpose: 招聘
 * @author: liangjun
 * @since: JDK 1.6
 * @date: 2015年5月25日
 */
@Service
public class RecruitInfoServiceImpl implements RecruitInfoService {
	
	@Autowired
	private RecruitInfoMapper recruitInfoMapper;

	public List<RecruitInfo> findRecruitInfo() throws Exception {
		// TODO Auto-generated method stub
		return recruitInfoMapper.findRecruitInfo();
	}

	public RecruitInfo getRecruitInfoById(int id) throws Exception {
		// TODO Auto-generated method stub
		return recruitInfoMapper.getRecruitInfoById(id);
	}

	public void addRecruitInfo(RecruitInfo recruitInfo) throws Exception {
		// TODO Auto-generated method stub
		recruitInfoMapper.addRecruitInfo(recruitInfo);
	}

	public void updRecruitInfo(RecruitInfo recruitInfo) throws Exception {
		// TODO Auto-generated method stub
		recruitInfoMapper.updRecruitInfo(recruitInfo);
	}

	public void delRecruitInfoById(int id) throws Exception {
		// TODO Auto-generated method stub
		recruitInfoMapper.delRecruitInfoById(id);
	}	

}
